<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="keywords" content="">
  <meta name="description" content="">
  <title>选择代理流程</title>
  <link href="/static/css/bootstrap.min.css" rel="stylesheet"/>
  <link rel="stylesheet" href="/static/include/css/style.css">
</head>
<body class="gray-bg">
<div class="container-div">
  <div class="row">
    <div class="col-sm-12 select-table table-striped">
      <table id="bootstrap-table"></table>
    </div>
  </div>
</div>
<script src="/static/include/js/footer.js"></script>
<script>
  var flowIds;

  function initData(initData) {
    flowIds = initData
    initTable()
  }

  function initTable() {
    var options = {
      url: api + '/scabpm/form/formCustDialog/listData_bpmDefSelector',
      listType: 'bpm',
      method: 'post',
      columns: [{
        checkbox: true,
        formatter: function (value, row, index) {
          if (flowIds.indexOf(row.type_id_) >= 0) {
            return {
              checked: true
            }
          }
        }
      },
        {
          field: 'name_',
          title: '流程名称'
        },
        {
          field: 'key_',
          title: '流程业务主键'
        },
        {
          field: 'desc_',
          title: '流程描述'
        }
        ]
    };
    $.table.init(options);
  }
</script>

</body>
</html>